package com.regex.web.service.sys.impl;
import java.util.List;

import com.regex.web.dao.sys.IMenuDao;
import com.regex.web.entity.sys.MenuDTO;
import com.regex.web.service.sys.IMenuService;
import com.regex.web.utils.Assist;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class MenuServiceImpl implements IMenuService{
    @Autowired
    private IMenuDao iMenuDao;
    @Override
    public long getMenuDTORowCount(Assist assist){
        return iMenuDao.getMenuDTORowCount(assist);
    }
    @Override
    public List<MenuDTO> selectMenuDTO(Assist assist){
        return iMenuDao.selectMenuDTO(assist);
    }
    @Override
    public MenuDTO selectMenuDTOByObj(MenuDTO obj){
        return iMenuDao.selectMenuDTOByObj(obj);
    }
    @Override
    public MenuDTO selectMenuDTOById(Long id){
        return iMenuDao.selectMenuDTOById(id);
    }
    @Override
    public int insertMenuDTO(MenuDTO value){
        return iMenuDao.insertMenuDTO(value);
    }
    @Override
    public int insertNonEmptyMenuDTO(MenuDTO value){
        return iMenuDao.insertNonEmptyMenuDTO(value);
    }
    @Override
    public int insertMenuDTOByBatch(List<MenuDTO> value){
        return iMenuDao.insertMenuDTOByBatch(value);
    }
    @Override
    public int deleteMenuDTOById(Long id){
        return iMenuDao.deleteMenuDTOById(id);
    }
    @Override
    public int deleteMenuDTO(Assist assist){
        return iMenuDao.deleteMenuDTO(assist);
    }
    @Override
    public int updateMenuDTOById(MenuDTO enti){
        return iMenuDao.updateMenuDTOById(enti);
    }
    @Override
    public int updateMenuDTO(MenuDTO value, Assist assist){
        return iMenuDao.updateMenuDTO(value,assist);
    }
    @Override
    public int updateNonEmptyMenuDTOById(MenuDTO enti){
        return iMenuDao.updateNonEmptyMenuDTOById(enti);
    }
    @Override
    public int updateNonEmptyMenuDTO(MenuDTO value, Assist assist){
        return iMenuDao.updateNonEmptyMenuDTO(value,assist);
    }

    public IMenuDao getIMenuDao() {
        return this.iMenuDao;
    }

    public void setIMenuDao(IMenuDao iMenuDao) {
        this.iMenuDao = iMenuDao;
    }

}